/**
 * Final page of user submission on Android app
 */
package edu.uic.cs.i422.s2011.team4;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

/**
 * @author JWiggs
 *
 */
public class ThankYou extends Activity implements OnClickListener{
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.final_page);
        
        View inflatedView = View.inflate(this, R.layout.final_page, null);
        SquirrelUIGenerator squirrel = new SquirrelUIGenerator(this);
        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(LinearLayout.VERTICAL); //Set Orientation
        //layout.addView(squirrel.getHeader());
        layout.addView(inflatedView);
        setContentView(layout);
        
        final  Button doneButton = (Button) findViewById(R.id.home_button);
		doneButton.setOnClickListener(this);
	}

	public void onClick(View v) {
		Intent myIntent = null;
		myIntent = new Intent(v.getContext(), Form.class);
		startActivityForResult(myIntent, 0);
    	}
}
